<template>
  <div class="error-container">
    <div class="error-content">
      <h1 class="error-code">404</h1>
      <div class="error-message">抱歉，您访问的页面不存在</div>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/')
}
</script>

<style lang="scss" scoped>
.error-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f2f5;
  
  .error-content {
    text-align: center;
    
    .error-code {
      font-size: 120px;
      color: #409eff;
      margin: 0;
      line-height: 1.2;
      text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    }
    
    .error-message {
      font-size: 24px;
      color: #606266;
      margin: 20px 0 30px;
    }
  }
}
</style>